package jbp.controller;

import java.util.HashMap;
import java.util.Map;

public class JbpBaseController {
    public Map<String, Object> GetQueryParam(String qparamstr)
    {
        Map<String, Object> queryParams = new HashMap<String, Object>();
        //添加条件查询
        if (!qparamstr.equals(null))
        {
            String[] arrays = qparamstr.split("^");
            for (String array : arrays)
            {
                String[] param = array.split("≌");
                if (param[0] != "undefined")
                {
                    queryParams.put(param[0], param[param.length - 1]);
                }
            }
        }
        return queryParams;
    }
}
